home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / Utilities / Apple File Exchange / AppleFile Exchange Translator / ExampleTrans / Example.make < prev    next >
Text File  |  1989-04-13  |  1KB  |  42 lines

  1. Obj = :objects:
  2. AOptions =
  3. POptions =
  4. LinkOptions = -l
  5.  
  6. vers         = temp
  7.  
  8. Examp    =     {Obj}Example.a.o {Obj}Example.p.o
  9.  
  10. {Obj} ƒ :
  11.  
  12. .a.o    ƒ    .a
  13.     echo "Assembling {DepDir}{Default}.a"
  14.     {Asm} {AOptions} {DepDir}{Default}.a -o {TargDir}{Default}.a.o
  15.     
  16. .p.o    ƒ    .p
  17.     echo "Compiling {DepDir}{Default}.p"
  18.     {Pascal} {POptions} {DepDir}{Default}.p -o {TargDir}{Default}.p.o
  19.     
  20.  
  21. 'Example Translator' ƒ {Obj}Example.tmp Example.r Example.rsrc Example.make
  22.     echo "Building Example Translator v{vers}"
  23.     echo "/* Signature resource build file */" >{Obj}signature.r
  24.     echo "type 'exmp' as 'STR ';" >>{Obj}signature.r
  25.     echo "resource 'exmp' (0,purgeable) ∂{ " >>:objects:signature.r
  26.     echo "∂"Example Translator, v{vers}, `date -d`∂"" >>{Obj}signature.r
  27.     echo "∂};" >>{Obj}signature.r
  28.     rez types.r Example.r ∂
  29.         -t VISA -c exmp ∂
  30.         -o 'Example Translator'
  31.     setfile -a Bi 'Example Translator'
  32.     (beep 880; beep 1320)
  33.  
  34. {Obj}Example.tmp ƒ {Examp}
  35.     echo "Linking Example Translator"
  36.     Link {LinkOptions} {Examp} ∂
  37.         "{PLibraries}"Paslib.o ∂
  38.         "{Libraries}"Interface.o ∂
  39.         -rt MCMC=4000 -ra Main=0 -rn  ∂
  40.         -t 'TEMP' -c '????' ∂
  41.         -o :objects:Example.tmp >{Obj}Examp.map
  42.